<?php
/**
 * <https://y.st./>
 * Copyright © 2018 Alex Yst <mailto:copyright@y.st>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <https://www.gnu.org./licenses/>.
**/

$xhtml = array(
	'<{title}>' => 'Difficulty with maths',
	'takedown' => '2017-11-01',
	'<{body}>' => <<<END
<section id="drudgery">
	<h2>Drudgery</h2>
	<p>
		I got a start on the maths coursework for the week, but I&apos;m not understanding what seems to be one of the key concepts.
		Hopefully I&apos;ll figure it out by the end of the week.
	</p>
	<p>
		My discussion post for the day:
	</p>
	<blockquote>
		<p>
			I&apos;m having difficultly wrapping my head around just how this is done, but it seems that polar coordinates simplify the solving of exponential equations when dealing with complex numbers.
			Multiplying out a complex number is time-consuming and prone to mistakes due to working with the imaginary unit, i.
			When multiplied by itself, it by definition results in one, but then when you multiply it by itself again, it goes back to being i.
			In other words, i to any even power is one, but to any odd power is itself.
			I&apos;m hoping by the end of the unit, I can understand how using polar coordinates helps even a little with this, but I&apos;m having difficulty with a lot of the polar coordinate stuff so far.
			I&apos;m thankful I can at least convert between polar and Cartesian coordinates; that means there&apos;s at least one thing I&apos;ve learned for the week so far.
		</p>
	</blockquote>
</section>
<section id="Minetest">
	<h2>Minetest log</h2>
	<img src="/y.st./source/y.st./static/img/CC_BY-SA_3.0/minetest.net./weblog/2018/03/22.png" alt="A view from my flat spot, with the mini map showing that the polarimeter has been dug out" class="framed-centred-image" width="800" height="600"/>
	<p>
		I finished carving out the border of the tunnel, in addition to going mining for diamonds.
		I&apos;ve been going through them like crazy.
		Hopefully, once I&apos;m working on the horizontal section of the tunnel, there&apos;ll be enough diamonds in its path to sustain the tunnel project.
		Otherwise, I might need to cancel it and work on some other build.
		Paying the high start-up cost of the tunnel is one thing, but if the tunnel project continues to eat more resources than it produces, it sort of eliminates half the reason for its very existence.
	</p>
	<p>
		I came up with a new idea for a bed I want to program.
		The red beds call you to them when you die, but what about a bed that instead acts in reverse?
		It would send you from the bed to the point of your last death.
		I&apos;ve already designed several limitations for it so it won&apos;t be so overpowered, including a limit to how far (in metres) it can send you (so if you die too far away, you can&apos;t warp back), a limit to how many items you can bring with you, and a limit to how much health you&apos;ll have on arrival.
		All three will be tied to your coal-mining stat, and increasing one decreases the others.
		For example, for a nearby death, you can go back with more health than for a distant death.
		Additionally, the fewer items you take, the more health you can have when you get there.
		Lastly, you only get one shot.
		As soon as you warp back with a black bed, the death location is forgotten by the mod.
		Anyway, this accomplishes two goals for me.
		First, I&apos;m trying to find a way each stat benefits the player, so this serves for the coal stat.
		Second, it eliminates the conflict with the yellow beds as far as what colour should be chosen.
		There&apos;s once again a reason yellow beds have as little coal as possible; they&apos;re not the coal-based bed.
		Still, I wouldn&apos;t mind finding something cool to do with a cyan bed, just because I like the colour.
	</p>
</section>
END
);
